console.table()

Displays log data in tabular form

<script>
let favLangs = ["c", "c++", "JavaScript", "html", "python", "oracle"];
console.table(favLangs);
<script>

If data is an array, its values will be the array indices.


<script>
let favEditor = {Windows: "VS code",MacOS: "VS code"};
console.table(favEditor);
<script>

If data is an object, the values will be its property names.

Reference: MDN Webdocs

Made with ❤️ by Designer Anna